export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  addBtn: false,
  editBtn: false,
  delBtn: false,
  selection: true,
  arrow: false,
  labelWidth: 120,
  searchMenuSpan: 6,
  height: 450,
  column: [
    {
      type: "input",
      label: "唯一标识",
      prop: "id",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "线路编码，不能重复",
      prop: "lineCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "车站编码，不能重复",
      prop: "stationCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "售票员编号",
      prop: "conductorId",
      display: false,
      hide: true
    },
    {
      type: "select",
      label: "售票员",
      prop: "conductorName",
      searchLabelWidth: 90,
      search: true,
      //searchSpan: 12,
      params: {
        userCodeKey: "conductorJobNo",
        operateNo: "deviceOperateNum"
      },
      component: "user-select",
      rules: [
        {
          required: true,
          message: "请选择售票员"
        }
      ]
    },
    {
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      search: "true",
      searchLabelWidth: 100,
      dicUrl: "/support/swpmdeviceoperationcode/page",
      props: {
        label: "operationCode",
        value: "operationCode",
        res: "data.records"
      },
      filterable: true,
      allowCreate: true,
      dicQuery: {
        size: -1
        //TODO 过滤售票员
      },
      rules: [
        {
          required: true,
          message: "请选择设备操作号"
        }
      ],
      width: 85
    },
    {
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo",
      hide: true,
      display: false
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          message: "请选择开始时间"
        }
      ],
      width: 90
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTimeDTO",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      //search: true,
      hide: true,
      showColumn: false,
      display: false
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
	  rules: [
        {
          required: true,
          message: "请选择结束时间"
        }
      ],
      width: 90
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTimeDTO",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      //search: true,
      hide: true,
      showColumn: false,
      display: false
    },
    {
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      search: "true",
      searchLabelWidth: 90,
      dicUrl: "/admin/dict/type/stm_conductor_shift",
      rules: [
        {
          required: true,
          message: "请选择售票员班次"
        }
      ],
      width: 85
    },
    {
      type: "select",
      label: "售票员早晚班",
      prop: "morningAndEveningShifts",
      searchLabelWidth: 100,
      dicUrl: "/admin/dict/type/stm_conductor_moring_night",
      rules: [
        {
          required: true,
          message: "请选择售票员早晚班"
        }
      ],
      hide: true,
      display: false
    },
    {
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      disabled: true,
      display: false,
      hide: true,
    },
    {
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2,
      step: 0,
      rules: [
        {
          required: true,
          message: "请输入实收金额"
        }
      ]
    },
    {
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      rules: [
        {
          required: true,
          message: "请输入BOM编号"
        }
      ],
      filterable: true,
      dicUrl: "/admin/dict/type/bom_code",
      multiple: true
    },
    {
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      clearable: false,
      search: true,
      rules: [
        {
          required: true,
          message: "请选择收入日期"
        }
      ],
      width: 85
    },
    {
      type: "select",
      label: "状态",
      prop: "approvalStatus",
      search: "true",
      searchValue:'0',
      dicData: [
        {
          label: "未提交",
          value: "0"
        },
        {
          label: "已提交",
          value: "1"
        }       
      ],
      display: false
    },
    {
      type: "select",
      label: "确认状态",
      prop: "confirmStatus",
      dicData: [
        {
          label: "未确认",
          value: "0"
        },
        {
          label: "已确认",
          value: "1"
        }
      ],
      search: true,
      //hide: true,
      display: false
    },
	{
      type: "select",
      label: "是否需要合并",
      prop: "isNeedMerge",
      search: false,     
      dicData: [
        {
          label: "不需要",
          value: "0"
        },
        {
          label: "需要",
          value: "1"
        }       
      ],
      width: 95   
    },	{
      width: 120,
      hide: false,
      label: '是否加入报表差错',
      prop: 'isAddReprotError',
      type:'select',
      dicData: [{
        label: '是',
        value: '1'
      },{
        label: '否',
        value: '0'
      }],
    },
	{
      hide: false,
      label: '报表修改状态',
      prop: 'reportModifyStatus',
      type:'select',
      search: true,
      dicData: [{
        label: '修改中',
        value: '1'
      },{
        label: '已完成',
        value: '0'
      }],
      width: 95,
	  searchLabelWidth: 100
    },{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "input",
      label: "备注",
      prop: "remark",
      width: 150
    },
    {
      type: "input",
      label: "部门ID",
      prop: "deptId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateTime",
      hide: true,
      display: false
    }, {
      "type": "input",
      "label": "值班站长工号",
      "prop": "entryUpdateJobNo",
      hide: true,
      display: false,
    }, {
      "type": "input",
      "label": "值班站长名称",
      "prop": "entryUpdateJobName",
      hide: true,
      display: false,
    },
    {
      type: "input",
      label: "删除标志 1：已删除 0：未删除",
      prop: "delFlag",
      hide: true,
      display: false
    }
  ]
};

export const tableOptionAdd = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  editBtn: false,
  delBtn: false,
  submitBtn:false,
  emptyBtn:false,
  selection: true,
  arrow: false,
  labelWidth: 120,
  searchMenuSpan: 6,
  column: [
    {
      type: "input",
      label: "唯一标识",
      prop: "id",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "线路编码，不能重复",
      prop: "lineCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "车站编码，不能重复",
      prop: "stationCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "售票员编号",
      prop: "conductorId",
      display: false,
      hide: true
    },
    {
      type: "select",
      label: "售票员",
      prop: "conductorName",
      searchLabelWidth: 90,
      search: true,
      //searchSpan: 12,
      params: {
        userCodeKey: "conductorJobNo",
        operateNo: "deviceOperateNum"
      },
      component: "user-select",
      rules: [
        {
          required: true,
          message: "请选择售票员"
        }
      ]
    },
    {
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      search: "true",
      searchLabelWidth: 100,
      dicUrl: "/support/swpmdeviceoperationcode/page",
      props: {
        label: "operationCode",
        value: "operationCode",
        res: "data.records"
      },
      filterable: true,
      allowCreate: true,
      dicQuery: {
        size: -1
        //TODO 过滤售票员
      },
      rules: [
        {
          required: true,
          message: "请选择设备操作号"
        }
      ]
    },
    {
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo",
      hide: true,
      display: false
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [
        {
          required: true,
          message: "请选择开始时间"
        }
      ]
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTimeDTO",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      //search: true,
      hide: true,
      showColumn: false,
      display: false
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
	  rules: [
        {
          required: true,
          message: "请选择结束时间"
        }
      ]
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTimeDTO",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      //search: true,
      hide: true,
      showColumn: false,
      display: false
    },
    {
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      search: "true",
      searchLabelWidth: 90,
      dicUrl: "/admin/dict/type/stm_conductor_shift",
      rules: [
        {
          required: true,
          message: "请选择售票员班次"
        }
      ]
    },
    {
      type: "select",
      label: "售票员早晚班",
      prop: "morningAndEveningShifts",
      searchLabelWidth: 100,
      dicUrl: "/admin/dict/type/stm_conductor_moring_night",
      rules: [
        {
          required: true,
          message: "请选择售票员早晚班"
        }
      ],
      hide: true,
      display: false
    },
    {
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      disabled: true,
      display: false,
      hide: true,
    },
    {
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2,
      step: 0,
      rules: [
        {
          required: true,
          message: "请输入实收金额"
        }
      ]
    },
    {
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      rules: [
        {
          required: true,
          message: "请输入BOM编号"
        }
      ],
      filterable: true,
      dicUrl: "/admin/dict/type/bom_code",
      multiple: true
    },
    {
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      clearable: false,
      search: true,
      rules: [
        {
          required: true,
          message: "请选择收入日期"
        }
      ]
    },
    {
      type: "select",
      label: "审批状态",
      prop: "approvalStatus",
      search: "true",
      searchValue:'0',
      dicData: [
        {
          label: "未提交",
          value: "0"
        },
        {
          label: "已提交",
          value: "1"
        }
      ],
      display: false
    },
    {
      type: "select",
      label: "确认状态",
      prop: "confirmStatus",
      dicData: [
        {
          label: "未确认",
          value: "0"
        },
        {
          label: "已确认",
          value: "1"
        }
      ],
      search: true,
      //hide: true,
      display: false
    },{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "textarea",
      label: "备注",
      span: 24,
      prop: "remark"
    },
    {
      type: "input",
      label: "部门ID",
      prop: "deptId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "删除标志 1：已删除 0：未删除",
      prop: "delFlag",
      hide: true,
      display: false
    }
  ]
};

export const tableOptionRecords = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  menu: false,
  addBtn:false,
  refreshBtn: false,
  submitBtn: false,
  emptyBtn: false,
  labelWidth: 120,
  column: [
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "select",
      label: "售票员姓名",
      prop: "conductorName",
      params: {
        userCodeKey: "conductorJobNo"
      },
      component: "user-select",
      rules: [
        {
          required: true,
          message: "请选择售票员"
        }
      ]
    },
    {
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo"
    },
    {
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      dicUrl: "/admin/dict/type/stm_conductor_shift"
    },
    {
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      dicUrl: "/support/swpmdeviceoperationcode/page",
      props: {
        label: "operationCode",
        value: "operationCode",
        res: "data.records"
      },
      filterable: true,
      allowCreate: true,
      dicQuery: {
        size: -1
        //TODO 过滤售票员
      }
    },
    {
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      display: false,
      hide: true,
    },
    {
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2
    },
    {
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      filterable: true,
      dicUrl: "/admin/dict/type/bom_code",
      multiple: true
    },
    {
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd"
    },{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "input",
      label: "修改人",
      prop: "entryUpdateJobName"
    },
    {
      type: "input",
      label: "修改人员工号",
      prop: "entryUpdateJobNo"
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateTime"
    }
  ]
};

export const tableOptionEdit = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  submitBtn: false,
  emptyBtn: false,
  labelWidth: 120,
  column: [
    {
      type: "input",
      label: "唯一标识",
      prop: "id",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "线路编码，不能重复",
      prop: "lineCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "车站编码，不能重复",
      prop: "stationCode",
      hide: true,
      display: false
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [{
        required: true,
        message: "请输入开始时间"
      }]
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [{
        required: true,
        message: "请输入结束时间"
      }]
    },
    {
      type: "input",
      label: "售票员编号",
      prop: "conductorId",
      display: false
    },
    {
      type: "select",
      label: "售票员姓名",
      prop: "conductorName",
      disabled: false,
      search: true,
      searchSpan: 12,
      params: {
        userCodeKey: "conductorJobNo",
        operateNo: "deviceOperateNum"
      },
      component: "user-select",
      rules: [
        {
          required: true,
          message: "请选择售票员"
        }
      ]
    },
    {
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo",
      hide: true,
      display: false
    },
    {
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      dicUrl: "/admin/dict/type/stm_conductor_shift",
      rules: [{
        required: true,
        message: "请输入售票员班次"
      }]
    },
    {
      type: "select",
      label: "售票员早晚班",
      prop: "morningAndEveningShifts",
      dicUrl: "/admin/dict/type/stm_conductor_moring_night",
      hide: true,
      display: false
    },
    {
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      dicUrl: "/support/swpmdeviceoperationcode/page",
      props: {
        label: "operationCode",
        value: "operationCode",
        res: "data.records"
      },
      filterable: true,
      allowCreate: true,
      dicQuery: {
        size: -1
        //TODO 过滤售票员
      },
      disabled: false,
      rules: [
        {
          required: true,
          message: "请选择设备操作号"
        }
      ]
    },
    {
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      disabled: true,
      display: false,
      hide: true,
    },
    {
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2,
      step: 0,
      rules: [{
        required: true,
        message: "请输入实收金额"
      }]
    },
    {
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      filterable: true,
      dicUrl: "/admin/dict/type/bom_code",
      multiple: true,
      disabled: false,
      rules: [{
        required: true,
        message: "请输入BOM编号"
      }]
    },
    {
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      rules: [{
        required: true,
        message: "请输入收入日期"
      }]
    },
    {
      type: "select",
      label: "审批状态(未提交，已提交)",
      prop: "approvalStatus",
      dicData: [
        {
          label: "未提交",
          value: "0"
        },
        {
          label: "已提交",
          value: "1"
        }
      ],
      display: false
    },
    {
      type: "input",
      label: "确认状态 0未确认 1已确认",
      prop: "confirmStatus",
      hide: true,
      display: false
    },{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "textarea",
      label: "备注",
      span: 24,
      prop: "remark"
    },
    {
      type: "input",
      label: "部门ID",
      prop: "deptId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "删除标志 1：已删除 0：未删除",
      prop: "delFlag",
      hide: true,
      display: false
    }
  ]
};

export const tableOptionMergeEdit = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  submitBtn: false,
  emptyBtn: false,
  labelWidth: 120,
  column: [{
      type: "input",
      label: "唯一标识",
      prop: "id",
      display: false
    },{
      type: "input",
      label: "线路编码，不能重复",
      prop: "lineCode",
      display: false
    },{
      type: "input",
      label: "车站编码，不能重复",
      prop: "stationCode",
      display: false
    },{
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [{
        required: true,
        message: "请输入开始时间"
      }]
    },{
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      rules: [{
        required: true,
        message: "请输入结束时间"
      }]
    },{
      type: "select",
      label: "售票员姓名",
      prop: "conductorName",
      disabled: true,
      rules: [{
        required: true,
        message: "请输入售票员姓名"
      }]
    },{
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo",
      display: false
    },{
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      dicUrl: "/admin/dict/type/stm_conductor_shift",
      rules: [{
        required: true,
        message: "请输入售票员班次名"
      }],
      disabled: true
    },{
      type: "select",
      label: "售票员早晚班",
      prop: "morningAndEveningShifts",
      dicUrl: "/admin/dict/type/stm_conductor_moring_night",
      display: false
    },{
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      disabled: true,
      rules: [{
        required: true,
        message: "请输入设备操作号"
      }]
    },{
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      display: false
    },{
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2,
      step: 0,
      rules: [{
        required: true,
        message: "请输入实收金额"
      }]
    },{
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      dicUrl: "/admin/dict/type/bom_code",
      filterable: true,
      multiple: true,
      rules: [{
        required: true,
        message: "请输入BOM编号"
      }]
    },{
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      rules: [{
        required: true,
        message: "请输入收入日期"
      }]
    },{
      type: "select",
      label: "审批状态(未提交，已提交)",
      prop: "approvalStatus",
      dicData: [
        {
          label: "未提交",
          value: "0"
        },
        {
          label: "已提交",
          value: "1"
        }
      ],
      display: false
    },{
      type: "input",
      label: "确认状态 0未确认 1已确认",
      prop: "confirmStatus",
      display: false
    },{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },{
      type: "textarea",
      label: "备注",
      span: 24,
      prop: "remark"
    },{
      type: "input",
      label: "部门ID",
      prop: "deptId",
      display: false
    },{
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      display: false
    },{
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      display: false
    },{
      type: "input",
      label: "创建时间",
      prop: "createTime",
      display: false
    },{
      type: "input",
      label: "修改时间",
      prop: "updateTime",
      display: false
    },{
      type: "input",
      label: "删除标志 1：已删除 0：未删除",
      prop: "delFlag",
      display: false
    }
  ]
};

export const tableOptionView = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  detail: true,
  submitBtn: false,
  emptyBtn: false,
  labelWidth: 120,
  column: [
    {
      type: "input",
      label: "唯一标识",
      prop: "id",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "线路编码，不能重复",
      prop: "lineCode",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "车站编码，不能重复",
      prop: "stationCode",
      hide: true,
      display: false
    },
    {
      type: "datetime",
      label: "开始时间",
      prop: "workingStartTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "datetime",
      label: "结束时间",
      prop: "workingEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "input",
      label: "售票员编号",
      prop: "conductorId",
      display: false
    },
    {
      type: "input",
      label: "售票员姓名",
      prop: "conductorName",
      search: true,
      searchSpan: 12
    },
    {
      type: "input",
      label: "售票员工号",
      prop: "conductorJobNo",
      hide: true,
      display: false
    },
    {
      type: "select",
      label: "售票员班次",
      prop: "conductorShifts",
      dicUrl: "/admin/dict/type/stm_conductor_shift"
    },
    {
      type: "select",
      label: "售票员早晚班",
      prop: "morningAndEveningShifts",
      labelWidth: 100,
      dicUrl: "/admin/dict/type/stm_conductor_moring_night",
      hide: true,
      display: false
    },
    {
      type: "select",
      label: "设备操作号",
      prop: "deviceOperateNum",
      labelWidth: 100,
      allowCreate: true,
      dicUrl: "/support/swpmdeviceoperationcode/page",
      props: {
        label: "operationCode",
        value: "operationCode",
        res: "data.records"
      },
      dicQuery: {
        size: -1
        //TODO 过滤售票员
      },
      rules: [
        {
          required: true,
          message: "请选择设备操作号"
        }
      ]
    },
    {
      type: "number",
      label: "预收款金额",
      prop: "adanceAmount",
      precision: 2,
      display: false,
      hide: true,
    },
    {
      type: "number",
      label: "实收金额",
      prop: "realAmount",
      precision: 2
    },
    {
      type: "select",
      label: "BOM编号",
      prop: "bomCode",
      dicUrl: "/admin/dict/type/bom_code",
      multiple: true
    },
    {
      type: "date",
      label: "收入日期",
      prop: "settleTime",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd"
    },
    {
      type: "select",
      label: "审批状态(未提交，已提交)",
      prop: "approvalStatus",
      display: false
    },
    {
      type: "input",
      label: "确认状态 0未确认 1已确认",
      prop: "confirmStatus",
      hide: true,
      display: false
    },
	{
      type: "datetime",
      label: "上岗时间",
      prop: "guardTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
	{
      type: "datetime",
      label: "上岗结束时间",
      prop: "guardEndTime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "textarea",
      label: "备注",
      span: 24,
      prop: "remark"
    },
    {
      type: "input",
      label: "部门ID",
      prop: "deptId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人ID",
      prop: "creatorId",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建人名称",
      prop: "creatorName",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "修改时间",
      prop: "updateTime",
      hide: true,
      display: false
    },
    {
      type: "input",
      label: "删除标志 1：已删除 0：未删除",
      prop: "delFlag",
      hide: true,
      display: false
    }
  ]
};
